const path = require('path');
function resolve (dir) {
  //__dirname为项目根目录，node的express方法中也有使用，join为javascript连接符
  return path.join(__dirname, dir)
}
module.exports = {
  assetsDir: "static-syyo",//将静态包打到static-syyo里

  chainWebpack: (config) => {
    // 给常用文件包起别名
    config.resolve.alias
      .set('@', resolve('src'))
      .set('assets',resolve('src/assets'))
      .set('components',resolve('src/components'))
      .set('views',resolve('src/views'))
      .set('network',resolve('src/network'))
      .set('common',resolve('src/common'))
  }
}

